import request from "./request";

/**
 * 公共厕所列表
 * @param {*} data
 * @returns
 */
export const publicToiletsList = (data) => {
  return request.post("/publicToilets/list", data);
};

export const publicToiletsDetail = (data) => {
  return request.post("/publicToilets/detail", data);
};

/**
 * 新增公共厕所
 * @param {*} data
 * @returns
 */
export const publicToiletsAdd = (data) => {
  return request.post("/publicToilets/add", data);
};

/**
 * 修改公共厕所
 * @param {*} data
 * @returns
 */
export const publicToiletsUpdate = (data) => {
  return request.post("/publicToilets/update", data);
};

/**
 * 删除公共厕所
 * @param {*} data
 * @returns
 */
export const publicToiletsDelete = (data) => {
  return request.post("/publicToilets/del", data);
};

export const publicToiletsDelRecover = (data) => {
  return request.post("/publicToilets/del_recover", data);
};

export const publicToiletsDelSuccess = (data) => {
  return request.post("/publicToilets/del_success", data);
};

export const publicToiletsExport = (data) => {
  return request.post("/publicToilets/export", data);
};

export const publicToiletsStatistics = (data) => {
  return request.post("/publicToilets/statistics", data);
};

// 导入
export const publicToiletsImport = (data) => {
  return request.post("/publicToilets/import", data);
};
